<?php
    
    $ips = array(
        'admin1' => '87.97.225.220',
        'admin2' => '87.187.234.134'
    );
    $isAdmin = false;
    $ip = $_SERVER['REMOTE_ADDR'];
    if(in_array($ip, $ips)){
        $isAdmin = true;
    }
    $data['curr_page'] = $curr_page;
    $data['isAdmin'] = $isAdmin;
    
    $this->load->view('header',$data);
    $this->load->view($main_content,$data); 
    $this->load->view('footer'); 
 ?>